<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="activities">

<xsl:choose>
	<xsl:when test="@id != -1">
<xsl:for-each select="activity[@id=/activities/@id]">
<xsl:for-each select="img">
<div style="position: relative; padding: 10px; left: 10px; top: 10px; float: right;">
<a href="{@big}" target="new" class="body"><img border="0" src="{@small}"/></a>
</div>
</xsl:for-each>
</xsl:for-each>
	</xsl:when>
	<xsl:otherwise>

<xsl:for-each select="activity">

<div style="position: relative; left: 40px; top: 10px; width: 200px; float: left;">
<a href="?id={@id}" class="body"><center><img border="0" src="{@img}"/></center></a>
</div>
<div style="position: relative; left: 50px; top: 10px; width: 80%;">
<xsl:if test="@loc!=''">
	<img border="0" src="{@loc}"/><p/>
</xsl:if>
<b><xsl:value-of select="@dd"/>-<xsl:value-of select="@mm"/>-<xsl:value-of select="@aaaa"/></b>
<br/><xsl:value-of select="@opening"/>
<p/>Costo per le girls: <xsl:value-of select="@girls"/>
<br/>Costo per i boys: <xsl:value-of select="@boys"/>
<p/><b>Partecipanti: <xsl:value-of select="@livepeople"/></b>
<p/><HR ALIGN="center" WIDTH="100%"/><p/>
</div>
</xsl:for-each>

	</xsl:otherwise>
</xsl:choose>


</xsl:template>

</xsl:stylesheet>